package com.lxy.user.config;

import com.aliyun.avatar20220130.Client;
import com.aliyun.teaopenapi.models.Config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class AliDVHConfig {
    @Bean("avatarClient")
    public Client avatarClient() throws Exception {
        return new Client(new Config()
            .setAccessKeyId("LTAI5tKDzjXxzu4PTni67xHK")
            .setAccessKeySecret("5Xi7HDaVue6QLJfMRFmsQnOhDmMhY6")
            .setEndpoint("avatar.cn-zhangjiakou.aliyuncs.com")
        );

    }

}